/*------------------------------------------------------
                hou_elearningGEN beta v1.0
Author: xtrung.net@gmail.com
Write On: 04/27/2008
Create On:4/13/2012 11:22:46 AM
------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
namespace hou_elearning.Entity
{
    public class SukienslideEntity
    {
        public SukienslideEntity()
        {
            m_pk_isukienslideid = 0;
            m_isothutu = 0;
            m_bbatdaucungsukientruoc = false;
            m_ithoigianhienthi = 0;
            m_snoidung = "";
            m_fksdanhmucsukienbatdauid = "";
            m_fksdanhmucsukienkethucid = "";
            m_fkitrangslideid = 0;
        }
		private Int64 m_pk_isukienslideid;
        public Int64 PK_iSukienslideID
		{
            get { return m_pk_isukienslideid; }
            set { m_pk_isukienslideid = value; }
		}
        private short m_isothutu;
        public short iSothutu
        {
            get { return m_isothutu; }
            set { m_isothutu = value; }
        }
        private Boolean m_bbatdaucungsukientruoc;
        public Boolean bBatdaucungsukientruoc
        {
            get { return m_bbatdaucungsukientruoc; }
            set { m_bbatdaucungsukientruoc = value; }
        }
        private String m_fksdanhmucsukienbatdauid;
        public String FK_sDanhmucsukienbatdauID
        {
            get { return m_fksdanhmucsukienbatdauid; }
            set { m_fksdanhmucsukienbatdauid = value; }
        }

        private String m_fksdanhmucsukienkethucid;
        public String FK_sDanhmucsukienkethucID
        {
            get { return m_fksdanhmucsukienkethucid; }
            set { m_fksdanhmucsukienkethucid = value; }
        }
        private int m_ithoigianhienthi;

        public int iThoigianhienthi
        {
            get { return m_ithoigianhienthi; }
            set { m_ithoigianhienthi = value; }
        }
        private String m_snoidung;

        public String sNoidung
        {
            get { return m_snoidung; }
            set { m_snoidung = value; }
        }
        private Int64 m_fkitrangslideid;

        public Int64 FK_iTrangslideID
        {
            get { return m_fkitrangslideid; }
            set { m_fkitrangslideid = value; }
        }
        #region Comparison
        public static List<SukienslideEntity> Sort(List<SukienslideEntity> list, String SortExpression, String SortDirection)
        {
            string strComparisonAttrb="COMPARISON_"+SortExpression;
            PropertyInfo propInfo = typeof(SukienslideEntity).GetProperty(strComparisonAttrb);
            if (propInfo != null)
            {
                list.Sort(propInfo.GetGetMethod().Invoke(null, null) as Comparison<SukienslideEntity>);
                if (SortDirection == "DESC")
                    list.Reverse();
            }
            return list;
        }
        #endregion
    }
}
